﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using TestLog4net.Customization;

namespace TestLog4net
{
    public partial class Form1 : Form
    {
        // Create a logger for use in this class
        private static readonly log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);

        public Form1()
        {
            InitializeComponent();
            log4net.Config.XmlConfigurator.Configure(new FileInfo(@"res/log-conf.xml"));
            
            
        }

        private void Button1_Click(object sender, EventArgs e)
        {
            log.Debug("this is in Form1");
            TestClass t = new TestClass();
            t.Dojob2();
            TestClass.Dojob();
        }
    }

    public class loghelper
    {
        
    }
}
